<%@page contentType="text/html;charset=utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>用户列表</title>
<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="js/sweetalert2.js"></script>
<link rel="stylesheet" type="text/css" href="../../css/list.css">
<script type="text/javascript">

</script>
</head>
<body>
	<div class="container">
		<fieldset>
			<legend>用户管理</legend>
			<!-- 用户列表 -->
			<table cellspacing="0px">
				<thead>
					<tr style="width: 120px;">
						<th style="width: 50px">昵称</th>
						<th style="width: 40px;">性别</th>
						<th style="width: 80px;">余额</th>
						<th style="width: 80px">联系方式</th>
						<th style="width: 150px">地址</th>
						<th style="width: 70px">操作</th>
					</tr>
				</thead>
				<c:forEach items="${usersList }" var="usersList" >
					<tr>
						<td>${usersList.user_name }</td>
						<td>${usersList.user_sex }</td>
						<td><fmt:formatNumber value="${usersList.user_salary }" pattern="￥,000.00"></fmt:formatNumber></td>
						<td>${usersList.user_tel }</td>
						<td>${usersList.user_addr }</td>
						<td>
							<a class="oplink" href="/management?method=ushow_update&user_id=${usersList.user_id}">修改</a>
                            <a class="oplink" href="/management?method=udelete&user_id=${usersList.user_id}">删除</a>
						</td>
					</tr>
				</c:forEach>
			</table>
		</fieldset>
	</div>

</body>
</html>
